package utgame.com.fakelegendary.model;

/**
 * Created by xueal on 2018/1/23.
 */

public class Hero {

    private String name;
    private Ball ball;

    public Hero(String name, Ball ball) {
        this.name = name;
        this.ball = ball;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Ball getBall() {
        return ball;
    }

    public void setBall(Ball ball) {
        this.ball = ball;
    }

    public void eatBall(Ball ball){
        ball.incR();
    }
}
